/*
 * Copyright (c) ShaoxiongDu <Shaoxiong.dev@aliyun.com> 2021 all Rights Reserved
 */

package zh.codegym.task.task07.task0703;

import java.util.Scanner;

/* 
寂寞数组之间的互动
*/

public class Solution {
    public static void main(String[] args) throws Exception {
        //在此编写你的代码
        String[] stringArray = new String[10];
        int[] numberArray = new int[10];
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < 10; i++) {
            stringArray[i] = scanner.next();
        }
        for (int i = 0; i < 10; i++) {
            numberArray[i] = stringArray[i].length();
            System.out.println(numberArray[i]);
        }
    }
}
